package com.heima.test3;

public class Yuan {
    private double r;
    private final static double p=3.14;

    public Yuan(double r) {
        this.r = r;
    }

    public Yuan() {
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }
    public double sq(){
        double sq;
        sq=p*r*r;
        return sq;
    }
}
